package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingProject;
import com.zzyl.vo.NursingProjectVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NursingProjectMapper {

    Page<NursingProjectVo> selectByPage(String name, Integer status) ;

    long getProjectRefCount(Long id);

    void insertNursingProject(NursingProject nursingProject);

    NursingProject selectById(Long id);

    void deleteNursingProject(Long id);

    void updateStatus(Long id, Integer status);

    List<NursingProject> selectAll();

    void update(NursingProject nursingProject);
}
